export default {
  title: {
    show: false
  },
  tooltip: {},
  legend: {
    top: 0,
    right: 80,
    data: ['外呼平均时长', '外呼成功率']
  },
  grid: {
    containLabel: true,
    top: 40,
    left: 20,
    right: 20,
    bottom: 20
  },
  xAxis: {
    axisLabel: {
      interval: 0,
      /* 
      //旋转位置配置
      rotate: 45,
      margin: 2
      */
      // 竖排显示配置
      formatter: function (value) {
        return value.split('').join('\n')
      }
    },
    data: [
      'x2',
      'x2',
      '3x',
      '31',
      'x5',
      'x6',
      'x1',
      'x2',
      'x3',
      'x4',
      'x5',
      'x1',
      'x2',
      'x3',
      'x4',
      'x5',
      'x6',
      'x1',
      'x2',
      'x3',
      'x4',
      'x5',
      'x6'
    ]
  },
  yAxis: [
    {
      type: 'value',
      name: 'v1',
      position: 'left',
      splitNumber: 5,
      axisLabel: {
        formatter: '{value}'
      }
    },
    {
      type: 'value',
      name: 'v2',
      position: 'right',
      splitNumber: 5,
      axisLabel: {
        formatter: '{value}'
      }
    }
  ],
  series: [
    {
      name: '外呼平均时长',
      type: 'bar',
      label: {
        normal: {
          show: true,
          position: 'top'
        }
      },
      yAxisIndex: 0,
      data: [
        5,
        20,
        36,
        10,
        10,
        20,
        5,
        20,
        36,
        10,
        10,
        20,
        36,
        10,
        10,
        20,
        5,
        20,
        36,
        10,
        10,
        20
      ]
    },
    {
      name: '外呼成功率',
      type: 'bar',
      label: {
        normal: {
          show: true,
          position: 'top'
        }
      },
      yAxisIndex: 1,
      data: [
        0.5,
        0.25,
        0.16,
        0.43,
        0.41,
        1,
        0.5,
        0.2,
        0.36,
        0.1,
        0.1,
        0.5,
        0.25,
        0.16,
        0.43,
        0.41,
        1,
        0.5,
        0.2,
        0.36,
        0.1,
        0.1,
        0.2
      ]
    }
  ]
}
